package mx.gob.imss.reiman.clientes.model;

import java.io.Serializable;

/**
 * 
 * @author Alberto Dzul Calvillo
 * @version 1.0
 * 
 */
public class Sintoma implements Serializable {
	private static final long serialVersionUID = 1L;
	private String cveSintoma;

	public Sintoma() {
		super();
		this.cveSintoma = "";
	}

	public Sintoma(String cveSintoma) {
		super();
		this.cveSintoma = cveSintoma;
	}

	public String getCveSintoma() {
		return cveSintoma;
	}

	public void setCveSintoma(String cveSintoma) {
		this.cveSintoma = cveSintoma;
	}

	@Override
	public String toString() {
		return "Sintoma [cveSintoma=" + cveSintoma + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cveSintoma == null) ? 0 : cveSintoma.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof Sintoma)) {
			return false;
		}
		Sintoma other = (Sintoma) obj;
		if (cveSintoma == null) {
			if (other.cveSintoma != null) {
				return false;
			}
		} else if (!cveSintoma.equals(other.cveSintoma)) {
			return false;
		}
		return true;
	}
}